﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Activation;
using Kaesoft.Hospedaje.Entities;
using Kaesoft.Hospedaje.Business;

namespace Kaesoft.Hospedaje.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class ServicioParametrizacion : IServicioParametrizacion
    {
        public List<Catalogo> ObtenerCatalogos(int tipoCatalogo)
        {
            ReservacionBusiness business = new ReservacionBusiness();
            return business.ObtenerCatalogos(tipoCatalogo);
        }

        public List<CatalogoSummary> ObtenerCatalogoSummary(int tipoCatalogo)
        {
            ReservacionBusiness business = new ReservacionBusiness();
            return business.ObtenerCatalogoSummary(tipoCatalogo);
        }

        public PaginatedList<CatalogoSummary> ObtenerCatalogoSummaryPorCriterio(int tipoCatalogo, int tipoConsulta, string criterio, int indice)
        {
            ReservacionBusiness business = new ReservacionBusiness();
            return business.ObtenerCatalogoSummaryPorCriterio(tipoCatalogo, tipoConsulta, criterio, indice);
        }

        public List<Parametro> ObtenerParametrosSistema()
        {
            ReservacionBusiness business = new ReservacionBusiness();
            return business.ObtenerParametrosSistema();
        }

        public void GrabarParametroSistema(List<Parametro> parametros)
        {
            ReservacionBusiness business = new ReservacionBusiness();
            business.GrabarParametroSistema(parametros);
        }

        public List<Usuario> ObtenerUsuarios()
        {
            ReservacionBusiness business = new ReservacionBusiness();
            return business.ObtenerUsuarios();
        }

        public List<EstructuraCatalogo> ObtenerTipoCatalogos()
        {
            ReservacionBusiness business = new ReservacionBusiness();
            return business.ObtenerTipoCatalogos();
        }

        public void GrabarCatalogo(List<Catalogo> catalogos)
        {
            ReservacionBusiness business = new ReservacionBusiness();
            business.GrabarCatalogo(catalogos);
        }

        public void GrabarTipoCatalogo(List<EstructuraCatalogo> tipos)
        {
            ReservacionBusiness business = new ReservacionBusiness();
            business.GrabarTipoCatalogo(tipos);
        }
    }
}
